﻿<Window x:Class="WPF.Views.Serialization"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Sample.ViewModels;assembly=Sample.ViewModels"
        Title="Serialization" Height="500" Width="500">
    <Window.DataContext>
        <vm:SerializationViewModel />
    </Window.DataContext>
    
    <StackPanel>
        <CheckBox Content="CheckBox1" IsChecked="{Binding IsChecked.Value}"/>
        <ComboBox SelectedIndex="{Binding SelectedIndex.Value}" ItemsSource="{Binding Items}" />
        <TextBox Text="{Binding Text.Value}" />
        <Slider Value="{Binding SliderPosition.Value}" />
        <Separator Margin="10" />
        <StackPanel Orientation="Horizontal">
            <Button Command="{Binding Serialize}">Serialize</Button>
            <Button Command="{Binding Deserialize}">Deserialize</Button>
        </StackPanel>
    </StackPanel>
</Window>
